package com.bn.commerce.order;

public class BnGiftCardCommerceItemImpl extends BNCommerceItemImpl {

	private static final String USER_ENTERED_AMOUNT = "userEnteredAmount";
	private static final String GIFT_MSG = "giftMsg";
	private static final String RECPIENT_EMAIL = "recpientEmail";
	private static final String YOUR_NAME = "yourName";
	private static final String IS_VIRTUAL = "isVirtual";

	public String getGiftMsg() {
		if(getPropertyValue(GIFT_MSG) != null)
			return (String)getPropertyValue(GIFT_MSG);
		return null;
	}

	public void setGiftMsg(String giftMsg) {
		setPropertyValue(GIFT_MSG, giftMsg);
	}

	public double getUserEnteredAmount() {
		if(getPropertyValue(USER_ENTERED_AMOUNT) != null)
			return (Double)getPropertyValue(USER_ENTERED_AMOUNT);
		return 0;
	}

	public void setUserEnteredAmount(double userEnteredAmount) {
		setPropertyValue(USER_ENTERED_AMOUNT, userEnteredAmount);
	}

	public String getRecpientEmail() {
		if(getPropertyValue(RECPIENT_EMAIL) != null)
			return (String)getPropertyValue(RECPIENT_EMAIL);
		return null;
	}

	public void setRecpientEmail(String recpientEmail) {
		setPropertyValue(RECPIENT_EMAIL, recpientEmail);
	}

	public String getYourName() {
		if(getPropertyValue(YOUR_NAME)!=null)
			return (String)getPropertyValue(YOUR_NAME);
		return null;
	}

	public void setYourName(String yourName) {
		setPropertyValue(YOUR_NAME, yourName);
	}

	public boolean getVirtual() {
		 boolean isVirtual = (Boolean)getPropertyValue(IS_VIRTUAL);
		 return isVirtual;
	}

	public void setVirtual(boolean isVirtual) {
		setPropertyValue(IS_VIRTUAL, isVirtual);
	}
}
